package edu.faytechcc.csc251.gui;

import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 *
 * @author bryanc7064
 */
public class MainFrame extends JFrame {

    private JPanel mainPanel;
    
    public MainFrame() {

        this.setTitle("Larrys' Gourmet Pizza Shop");
        
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
        this.buildMainPanel();
        
        this.add(mainPanel);
        
        this.setResizable(false);
        
        this.pack();
        
        this.setVisible(true);
        
    }

    private void buildMainPanel() {
        this.mainPanel = new JPanel(new BorderLayout());
        
        JPanel eastPanel = new SizeCrustPanel();
        JPanel westPanel = new JPanel();
        
        this.mainPanel.add(eastPanel, BorderLayout.WEST);
    }
}
